package loja.view.editor.components.frame;

import loja.model.entity.produto.Categoria;
import loja.model.handler.HandlerViewEntity;
import loja.view.editor.components.panel.CategoriaPanelEditor;
import loja.view.editor.components.panel.EntityPanelEditor;
import loja.view.editor.components.tablemodel.CategoriaTableModel;
import loja.view.editor.components.tablemodel.EntityTableModel;

public class CategoriaFrameEditor extends EntityFrameEditor<Categoria, Integer> {

	private static final long serialVersionUID = 1L;

	public CategoriaFrameEditor(
			HandlerViewEntity<Categoria, Integer> handlerViewEntity) {
		super(handlerViewEntity);
		labelTitle = "Categorias";
	}

	@Override
	protected EntityPanelEditor<Categoria, Integer> createEntityPanelEditor() {
		return new CategoriaPanelEditor(handlerViewEntity);
	}

	@Override
	protected EntityTableModel<Categoria> createTableModel() {
		return new CategoriaTableModel();
	}

}
